<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="login">
    <h1>Login</h1>
    <p>Please enter your username and password</p>
    
    <%if (ViewData["ErrorMessage"] != null)
      { %>
    <div class="error">
        <p><%=Html.Encode(ViewData["ErrorMessage"]) %></p>
    </div>
    <%} %>
    
    <fieldset>
        <form action="" method="post">
            <p><label>User Name</label><input id="UserName" name="UserName" type="text" value="<%=ViewData["UserName"] %>" /></p>
            <p><label>Password</label><input id="Password" name="Password" type="password"/></p>
            <p class="btn"><input type="submit" value="Login"/></p>
        </form>
    </fieldset>
    
    </div>

</asp:Content>
